/**
 * @ngdoc service
 * @name app.service:ConfigUtil
 * @function getBaseUrl
 * @description This service use for get current URL of web-app
 * and the mode running of web-app.
 */
appSkeleton.service('ConfigUtilSkeleton', function () {
    return {
        /**
         *@ngdoc function
         *@name app.service:ConfigUtil#getBaseUrl
         *@methodOf app.service:ConfigUtil
         *@description The URL of application should look like<br>
         *<pre>
         *http:<address>:<port>*
         *https:<address>:<port>*
         *</pre>
         *The base URL of RESTful servies.
         *<pre>
         *http:<address>:<port>
         *https:<address>:<port>
         *</pre>
         *@return {string} Base URL of RESTful services.
         */
        getBaseUrl: function () {
            var href = window.location.href;
            var pathname = window.location.pathname;
           var origin = href.substring(0, href.indexOf(pathname));
        //   return 'https://192.168.73.37:8445';
           return origin ;
        }



    };
});